import request from '@/utils/request'

// 查询门店基础信息列表
export function listStoreBasics(query) {
  return request({
    url: '/xdstore/storeBasics/list',
    method: 'get',
    params: query
  })
}

// 查询门店基础信息详细
export function getStoreBasics(id) {
  return request({
    url: '/xdstore/storeBasics/' + id,
    method: 'get'
  })
}

// 新增门店基础信息
export function addStoreBasics(data) {
  return request({
    url: '/xdstore/storeBasics',
    method: 'post',
    data: data
  })
}

// 修改门店基础信息
export function updateStoreBasics(data) {
  return request({
    url: '/xdstore/storeBasics',
    method: 'put',
    data: data
  })
}

// 删除门店基础信息
export function delStoreBasics(id) {
  return request({
    url: '/xdstore/storeBasics/' + id,
    method: 'delete'
  })
}

// 导出门店基础信息
export function exportStoreBasics(query) {
  return request({
    url: '/xdstore/storeBasics/export',
    method: 'get',
    params: query
  })
}

// 店面数据异常反馈
export function getFeedback(query) {
  return request({
    url: '/xdstore/feedback/list',
    method: 'get',
    params: query
  })
}

// 店面数据异常反馈 导出
export function exportFeedback(query) {
  return request({
    url: '/xdstore/feedback/export',
    method: 'get',
    params: query
  })
}